Minimally invasive surgery using endoscopic stapler